<template>
  <div class="empty-box">
    <div class="empty-content">
      <span class="el-icon-receiving" />
      <div class="empty-text">
        {{ title }}
      </div>
    </div>
  </div>
</template>

<script>
/**
   * 空数据占位组件
   * @author maolin
   */
export default {
  name: 'EmptyBox',
  props: {
    /**
     * 空数据时显示的文字
     * @public
     */
    title: {
      type: String,
      default: '暂无数据'
    }
  }
};
</script>

<style scoped lang="scss">
.empty-box{
  position: relative;
  width: 100%;
  height: 200px;
  .empty-content{
    color: rgba(0, 0, 0, 0.25);
    width: 100%;
    position: absolute;
    top: 50%;
    left: 0;
    text-align: center;
    font-size: 50px;
    transform: translateY(-50%);
    .empty-text{
      font-size: 14px;
    }
  }
}
</style>
